<!--
 * @Author: asushiye
 * @Date: 2020-07-14 10:48:58
 * @Commit: file content
-->
<page-header autoTitle="false" />

<nz-card>
  <sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)" />
  <st
    #st
    [data]="url"
    [req]="req"
    [columns]="columns"
    [scroll]="{ x: '1700px' }"
    [expand]="expand"
    [page]="{ showSize: true }"
    size="small"
    expandRowByClick
    expandAccordion
  >
    <ng-template #expand let-item let-index="index" let-column="column">
      <sv-container size="small" col="3">
        <sv label="执行程序" type="primary" col="1">{{ item!.executeName }}</sv>
        <sv label="执行方法" col="1">{{ item!.executeMethod }}</sv>
        <sv label="请求参数" col="1">{{ item!.executeParam }}</sv>
        <sv label="线程数" col="3">{{ item!.numberOfThread }}</sv>
        <sv label="数据条数" col="3">{{ item!.numberOfData }}</sv>
      </sv-container>
      <textarea nz-input placeholder="script" [nzAutosize]="{ minRows: 2, maxRows: 6 }">{{ item!.jobResult }}</textarea>
    </ng-template>
  </st>
</nz-card>
